package cmd

import (
	"fmt"
	"os"

	"github.com/spf13/cobra"
)

func ImageCommand(cmd *cobra.Command, args []string) {
	if len(args) == 0 {
		fmt.Println(cmd.Short)
		os.Exit(0)
	}

	if args[0] == "list" {
		list_images()
	}
	if args[0] == "add" {
		fmt.Println(args)
	}
}

var imagesCmd = &cobra.Command{
	Use:   "images",
	Short: "Images Releated Operations",
	Long:  ``,
	Run:   ImageCommand,
}

func init() {
	rootCmd.AddCommand(imagesCmd)
}
